package grape.composite.rest.feedback.form;
import grape.common.rest.form.BaseForm;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
/**
 * <p>
 * 意见反馈表
 * </p>
 *
 * @author yangwei
 * @since 2020-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="意见反馈添加表单对象")
public class FeedbackCreateForm extends BaseForm {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "联系人姓名")
    private String contactUsername;

    @ApiModelProperty(value = "联系人手机号")
    private String contactMobile;

    @ApiModelProperty(value = "联系人邮箱")
    private String contactEmail;

    @NotEmpty(message="问题建议内容不能为空")
    @ApiModelProperty(value = "问题建议内容",required = true)
    private String suggestion;

    @ApiModelProperty(value = "问题建议图片地址")
    private String suggestionImgUrl;

    @ApiModelProperty(value = "前一条id")
    private String previousFeedbackId;

}
